package com.sutuijingling.bean;

import com.sutuijingling.result.c;

public class AccountBean {
    String rawpassword;
    String rawpaycode;
    String rawusername;
    String realPaycode;
    String realPswd;
    String realname;

    public AccountBean(String str, String str2) {
        this.rawusername = str;
        this.rawpassword = str2;
    }

    public AccountBean(String str, String str2, String str3, String str4) {
        this.rawusername = str;
        this.rawpassword = str2;
        this.realname = str3;
        this.realPswd = str4;
    }

    public AccountBean(String str, String str2, String str3, String str4, String str5, String str6) {
        this.rawusername = str;
        this.rawpassword = str2;
        this.rawpaycode = str3;
        this.realname = str4;
        this.realPswd = str5;
        this.realPaycode = str6;
    }

    public AccountBean(boolean z, String str, String str2, String str3) {
        if (z) {
            this.realname = str;
            this.realPswd = str2;
            this.realPaycode = str3;
            return;
        }
        this.rawusername = str;
        this.rawpassword = str2;
        this.rawpaycode = str3;
    }

    public void decrypt(String str) {
        String str2 = str + "_yifu";
        try {
            this.realname = b.b(this.rawusername, str2);
            this.realPswd = b.b(this.rawpassword, str2);
            this.realPaycode = b.b(this.rawpaycode, str2);
        } catch (c e) {
            e.printStackTrace();
        }
    }

    public void decryptRealName(String str) {
        try {
            this.realname = b.b(this.rawusername, str + "_yifu");
        } catch (c e) {
            e.printStackTrace();
        }
    }

    public void encrypt(String str) {
        String str2 = str + "_yifu";
        try {
            this.rawusername = b.a(this.realname, str2);
            this.rawpassword = b.a(this.realPswd, str2);
            this.rawpaycode = b.a(this.realPaycode, str2);
        } catch (c e) {
            e.printStackTrace();
        }
        this.realname = null;
        this.realPswd = null;
        this.realPaycode = null;
    }

    public void encryptRealName(String str) {
        try {
            this.rawusername = b.a(this.realname, str + "_yifu");
        } catch (c e) {
            e.printStackTrace();
        }
    }

    public String getRawpassword() {
        return this.rawpassword;
    }

    public String getRawpaycode() {
        return this.rawpaycode;
    }

    public String getRawusername() {
        return this.rawusername;
    }

    public String getRealPaycode() {
        return this.realPaycode;
    }

    public String getRealPswd() {
        return this.realPswd;
    }

    public String getRealname() {
        return this.realname;
    }

    public String getUsername() {
        return this.realname;
    }

    public void setRawpassword(String str) {
        this.rawpassword = str;
    }

    public void setRawpaycode(String str) {
        this.rawpaycode = str;
    }

    public void setRawusername(String str) {
        this.rawusername = str;
    }

    public void setRealPaycode(String str) {
        this.realPaycode = str;
    }

    public void setRealPswd(String str) {
        this.realPswd = str;
    }

    public void setRealname(String str) {
        this.realname = str;
    }

    public void setUsername(String str) {
        this.realname = str;
    }

    public String toString() {
        return "AccountBean [rawusername=" + this.rawusername + ", rawpassword=" + this.rawpassword + ", rawpaycode=" + this.rawpaycode + ", realname=" + this.realname + ", realPswd=" + this.realPswd + ", realPaycode=" + this.realPaycode + "]";
    }
}
